package com.app.miwawa.api.eam.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 学员请假上限表
 * <p>描述: 教务管理</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月10日 下午4:00:01
 * @version 1.0.2016
 */
@Entity @Table(name="tb_eam_student_leave_limit")
public class StudentLeaveLimit extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -1425832934325614941L;
	
	//请假上限
	@Column(name = "toplimit", length = 50, nullable = true)
	private String topLimit ; 
	
	//学生id
	@Column(name = "student_id", length = 50, nullable = true)
	private String studentId;
	
	//班级id
	@Column(name = "classes_id", length = 50, nullable = true)
	private String classesId;
	
	//合同id
	@Column(name = "contract_id", length = 50, nullable = true)
	private String contractId;
	
	//创建日期
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@Column(name = "create_date",nullable = true)	
	private Date createDate;

	public String getTopLimit() {
		return topLimit;
	}

	public void setTopLimit(String topLimit) {
		this.topLimit = topLimit;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getClassesId() {
		return classesId;
	}

	public void setClassesId(String classesId) {
		this.classesId = classesId;
	}

	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
}
